<template>
	<div id="app">
		<!-- <div class="layer"> -->
		<router-view />
		<!-- </div> -->
	</div>
</template>
<script>
	import Cookie from 'vue-cookies'
	export default {
		components: {},
		computed: {
			userInfo() {
				return this.$store.state.userInfo
			}
		},
		data() {
			return {}
		},
		watch: {},
		created() {},
		async mounted() {
			const userInfoCookie = Cookie.get('LOGIN_USER_INFO')
			if (userInfoCookie) {
				this.$store.dispatch('getUserInfo')
				this.$store.dispatch('getCurrency')
			}
		},
		methods: {}
	}
</script>

<style lang="less">
	#app {
		font-family: Microsoft YaHei, Avenir, Helvetica, Arial, sans-serif;
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
		text-align: center;
		color: #fff;
		font-size: 14px;
		background: url('~@/assets/images/bg.png') no-repeat;
		background-size: cover;
		min-height: 100vh;
		// -webkit-overflow-scrolling: touch;
	}

	body {


		// .el-message {
		// 	min-width: 124px;
		// 	padding: 15px 30px;
		// 	background: #FFFFFF;
		// 	border: none;
		// 	border-radius: 10px;
		// 	z-index: 2010;
		// }

		// .el-message--success {
		// 	.el-icon-success {
		// 		color: #FFCD45;
		// 	}
		// }

		// .el-message--info .el-message__content,
		// .el-message--error .el-message__content,
		// .el-message--warning .el-message__content,
		// .el-message--success .el-message__content {
		// 	color: #1A1A1A;
		// }


		// @media screen and (max-width: 750px) {
			.el-message {
				min-width: 150px;
				padding: 10px 20px;
				background: rgba(0, 0, 0, .9);
				border: none;
				border-radius: 8px;
				// top: 50% !important;
				// transform: translate(-50%, -50%);
				// display: block;


			}

			.el-message {

				.el-icon-error,
				.el-icon-info,
				.el-icon-success,
				.el-icon-warning {
					color: #fff;
				}
			}

			.el-message--info .el-message__content,
			.el-message--error .el-message__content,
			.el-message--warning .el-message__content,
			.el-message--success .el-message__content {
				color: #fff;
			}
		// }
	}

	// 滚动条的滑块
	.el-table__body-wrapper::-webkit-scrollbar-thumb {
		background-color: #D1E3FF;
		border-radius: 3px;
	}

	.el-table__body-wrapper,
	.el-scrollbar__wrap {
		&::-webkit-scrollbar {
			width: 4px;
			height: 4px;
		}
	}

	.layer {

		// 顶部导航栏
		.van-nav-bar {
			background-color: transparent;
			color: #fff;
			margin-bottom: 10px;

			.van-nav-bar__left {
				padding: 0;

				.van-icon {
					color: #fff;
					font-size: 18px;
				}
			}

			.van-nav-bar__right {
				padding: 0;

				.van-nav-bar__text {
					color: #0DF5E3;
				}
			}

			.van-nav-bar__title {
				color: #fff;
				font-size: 16px;
			}
		}

		// 表单
		.dark-ruleForm {
			color: #fff;

			.el-form-item {
				background-color: #3D3D3D;
				border-radius: 16px;
				text-align: right;
				padding: 12px;
				margin-bottom: 20px;

				.el-form-item__label {
					padding: 0 0 7px 40px;
					float: left;
					color: #fff;
					line-height: unset;
				}

				.el-form-item__content {
					line-height: unset;
				}
			}



			.paw_icon,
			.icon {
				width: 22px;
				height: 22px;
				vertical-align: sub;
			}

			.flex_prefix {
				width: 78px;
				display: flex;
				align-items: center;
				justify-content: space-between;

				.icon {
					margin-right: 10px;
				}

				.area_code {
					flex: 1;
					display: flex;
					align-items: center;
					justify-content: space-around;

					span {
						font-size: 14px;
						color: #fff;
					}

					i {
						font-size: 14px;
						color: #fff;
					}
				}
			}

			.el-input--prefix .el-input__inner {
				padding-left: 40px;
			}

			.phone_input {
				.el-input__inner {
					padding-left: 87px;
				}
			}

			.el-input__inner {
				background-color: transparent;
				border: 0;
				height: 22px;
				line-height: unset;
				color: #fff;

				&::placeholder {
					color: #999999;
				}
			}

			.el-input__icon {
				line-height: unset;
			}

			.el-form-item__error {
				padding-top: 15px;
			}
		}

		// 提交按钮
		.submit_but {
			width: 200px;
			height: 60px;
			background-color: #0DF5E3;
			color: #1A1A1A;
			border: 0;
			border-radius: 30px;
			font-size: 16px;
			margin-top: 10px;
			margin-bottom: 20px;
			font-weight: 700;

			&:hover {
				background-color: #0DF5E3;
				color: #1A1A1A;
			}
		}

		// 暂无数据
		.no_data {
			img {
				width: 110px;
				height: auto;
				margin-bottom: 10px;
			}

			p {
				font-size: 16px;
				color: #999;
			}
		}
	}
</style>